package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_teaching_calling")
public class TeachingCalling implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 点名开始时间
     */
    private LocalDateTime startTime;

    /**
     * 点名介绍时间
     */
    private LocalDateTime endTime;

    /**
     * 是否已结束：0表示进行中，1表示结束
     */
    private String ended;

    /**
     * 点名创建老师
     */
    private Integer creator;

    /**
     * 点名班级
     */
    private Integer classId;


    // 添加关联查询字段
    @TableField(exist = false)
    private String className;
    @TableField(exist = false)
    private String teacherName;


}
